package cn.exrick.xboot.common.constant;

/**
 * @author Exrickx
 */
public interface SecurityConstant {

    /**
     * token分割
     */
    String TOKEN_SPLIT = "Bearer ";

    /**
     * JWT签名加密key
     */
    String JWT_SIGN_KEY = "xboot";

    /**
     * token参数头
     */
    String HEADER = "accessToken";

    /**
     * 权限参数头
     */
    String AUTHORITIES = "authorities";

    /**
     * 用户选择JWT保存时间参数头
     */
    String SAVE_LOGIN = "saveLogin";

    /**
     * 交互token前缀key
     */
    String TOKEN_PRE = "XBOOT_TOKEN_PRE:";
    /**
     * @author    : LiYuanzhuo
     * description: 交互APP  token前缀key
     * create time: 2019/10/23 16:16
     */
    String APP_TOKEN_PRE = "XBOOT_APP_TOKEN_PRE:";
    /**
     * 用户token前缀key 单点登录使用
     */
    String USER_TOKEN = "XBOOT_USER_TOKEN:";

    String USER_QYWX="XBOOT_USER_CODE:";
    /**app动态码过期时间*/
    String XBOOT_USER_CODE_EXPIRE = "XBOOT_USER_CODE_EXPIRE:";
    /**
     * @author    : LiYuanzhuo
     * description: 用户身份证号
     * create time: 2019/8/22 14:47
     */
    String USER_IDCARDENCRYPTION = "XBOOT_USER_IDCARD:";

    /**
     * @author    : LiYuanzhuo
     * description: 用于oauth2的请求头
     * create time: 2019/10/14 10:29
     */
    String OAUTH_HEARD ="authToken";
    /**
     * @author    : LiYuanzhuo
     * description: oauth单点登录利用state的值添加安全校验，防止盗链访问
     * create time: 2019/10/29 11:40
     */
    String STOP_SECONDARY_USE_STATE = "STOP_SECONDARY_USE_STATE:";
    /**
     * @author    : LiYuanzhuo
     * description: oauth单点登录第三方请求授权码
     * create time: 2019/10/30 10:31
     */
    String OAUTH_STATE ="OAUTH_STATE:";
}
